﻿namespace Digitalmes.Domain.Mes;

/// <summary>
/// 产品返工明细表
/// </summary>
[SugarTable("rework_doc_line", "产品返工明细表")]
public class ReworkDocLine : EntityBaseId
{
    /// <summary>
    /// 返工单Id
    /// </summary>
    public long DocId { get; set; }

    /// <summary>
    /// 不良代码
    /// </summary>
    [Required, NotNull]
    [StringLength(32)]
    public string? BadCode { get; set; }

    /// <summary>
    /// 不良内容
    /// </summary>
    [Required, NotNull]
    [StringLength(128)]
    public string? BadContent { get; set; }

    /// <summary>
    /// 描述
    /// </summary>
    [StringLength(512)]
    public string? Remark { get; set; }
}
